from tfpp.object.object import Object, MetaObject

class MetaRecord(MetaObject):
    def get_properties(self):
        return ('record_id',
                'title',
                'status',
                'priority',)
    
    def get_clazz(self):
        return Record

class Record(Object):
    def as_text(self):
        return "Record(record_id='%s', title='%s', status='%s', priority='%s')" %  \
                (self.data['record_id'], self.data['record_id'], self.data['status'], self.data['priority'])

    def as_html(self):
        return self.as_text(self)
